package com.liu.student.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.time.LocalTime;

/**
 * 课程时间表实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CourseSchedule {
    private Long id;
    private Long courseId;      // 课程ID
    private Integer dayOfWeek;  // 星期几（1-7，1为周一）
    private LocalTime startTime; // 开始时间
    private LocalTime endTime;   // 结束时间
    private String location;     // 上课地点
    private String room;         // 教室
    
    // 关联的课程信息
    private Course course;

    // Getter and Setter methods
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    
    public Long getCourseId() { return courseId; }
    public void setCourseId(Long courseId) { this.courseId = courseId; }
    
    public Integer getDayOfWeek() { return dayOfWeek; }
    public void setDayOfWeek(Integer dayOfWeek) { this.dayOfWeek = dayOfWeek; }
    
    public LocalTime getStartTime() { return startTime; }
    public void setStartTime(LocalTime startTime) { this.startTime = startTime; }
    
    public LocalTime getEndTime() { return endTime; }
    public void setEndTime(LocalTime endTime) { this.endTime = endTime; }
    
    public String getLocation() { return location; }
    public void setLocation(String location) { this.location = location; }
    
    public String getRoom() { return room; }
    public void setRoom(String room) { this.room = room; }
    
    public Course getCourse() { return course; }
    public void setCourse(Course course) { this.course = course; }
}
